package us.nchu.tomtiger.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by XiongXuan on 2018/1/11.
 */
@Controller
@RequestMapping("/search")
public class SearchController {

    @GetMapping("/user")
    public ModelAndView viewUserSearch() {
        ModelAndView modelAndView = new ModelAndView("search-user");

        return modelAndView;
    }

    @GetMapping("/project")
    public ModelAndView viewProjectSearch() {
        ModelAndView modelAndView = new ModelAndView("search-project");

        return modelAndView;
    }
}
